<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import CheckStatusEnum from '@/infra/constant/CheckStatusEnum'
import { refundApplyApi } from '@/feature/pms/infra/api/refundApplyApi'
import CURDTable from '@/framework/components/table/CURDTable'
import RefundStatusEnum from '@/infra/constant/RefundStatusEnum'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: refundApplyApi,
        showSelection: false,
        columns: [
          {
            label: '审核状态',
            searchable: true,
            type: ColumnType.SELECT,
            hiddenInForm: true,
            options: CheckStatusEnum,
            prop: 'checkStatus'
          },
          {
            label: '退款状态',
            searchable: false,
            type: ColumnType.SELECT,
            hiddenInForm: true,
            options: RefundStatusEnum,
            prop: 'refundStatus'
          },
          {
            label: '审核备注',
            prop: 'checkRemark'
          },
          {
            label: '退款金额',
            prop: 'refundAmount'
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

